﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NodeBasedSkillEditor.Model.CommandHistory
{
    public class Cmd_PasteDagData : CommandRecord
    {
        public override ECommandType CmdType => ECommandType.PasteDagData;

        public string DagDataJson;

        public Cmd_PasteDagData(DAG_Data dagData)
        {
            DagDataJson = SwifterJson.XFormatter.ToJson(dagData);
        }

        public DAG_Data GetDagData()
        {
            return SwifterJson.XFormatter.FromJson<DAG_Data>(DagDataJson);
        }
    }
}
